/* 
 * File:   edge.h
 * Author: kenji
 *
 * Created on December 17, 2013, 8:45 AM
 */

#ifndef EDGE_H
#define	EDGE_H

class Vertex;

class Edge
{
public:

    Edge(Vertex *, Edge *, int);

    ~Edge();

    Vertex *getEnd();

    void print();

    Edge *getNext();

    int getWeight() const;

    void insertNext(int weight_, Vertex *end_, Edge *next_);
    
private:

    int weight_;

    Vertex *end_;

    Edge *next_;
};

#endif	/* EDGE_H */

